﻿using SqlSugar;
using System;

namespace Models
{
    ///<summary>
    ///设备异常日志表
    ///</summary>
    [SugarTable("device_error_log")]
    public partial class DeviceErrorLog
    {
        public DeviceErrorLog()
        {

        }
        /// <summary>
        /// Desc:主键Id
        /// Default:
        /// Nullable:False
        /// </summary>           
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public long Id { get; set; }

        /// <summary>
        /// Desc:PLC名
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string PlcName { get; set; }

        /// <summary>
        /// Desc:设备名
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string DeviceName { get; set; }

        /// <summary>
        /// Desc:异常代码
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string ErrorCode { get; set; }

        /// <summary>
        /// Desc:异常说明
        /// Default:
        /// Nullable:False
        /// </summary>           
        public string ErrorDetail { get; set; }

        /// <summary>
        /// Desc:恢复时间
        /// Default:
        /// Nullable:True
        /// </summary>           
        public string SetTime { get; set; }

        /// <summary>
        /// Desc:
        /// Default:0001-01-01 00:00:00.000000
        /// Nullable:False
        /// </summary>           
        public DateTime CreatedTime { get; set; }

        /// <summary>
        /// Desc:
        /// Default:0001-01-01 00:00:00.000000
        /// Nullable:False
        /// </summary>           
        public DateTime LastUpdateTime { get; set; }

        /// <summary>
        /// Desc:是否华星导致的异常
        /// Default:0
        /// Nullable:False
        /// </summary>           
        public byte IsCsotError { get; set; }

    }
}
